package xsort

import (
	"sort"
	"strings"
)

// 字符串切片，按照字母大小排序[s: 切片, order: 正序=true，倒序=false]
func FirstLetterTheSort(s []string, order bool) {
	sort.Slice(s, func(i, j int) bool {
		return strings.ToLower(s[i]) < strings.ToLower(s[j])
	})
}
